package com.youth.orderservice.controller;


import com.youth.commonutils.R;
import com.youth.orderservice.entity.TOrder;
import com.youth.orderservice.service.TPayLogService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 支付日志表 前端控制器
 * </p>
 */
@RestController
@RequestMapping("/orderservice/t-pay-log")
public class TPayLogController {

    @Autowired
    private TPayLogService tPayLogService;

    @ApiOperation(value = "根据一些id信息完成支付")
    @PostMapping("/toPay")
    public R toPay(@RequestBody TOrder tOrder){
        return tPayLogService.toPay(tOrder);
    }

}

